package com.wuzhiming.istudy.service;

import com.wuzhiming.istudy.pojo.Collection;

import java.util.List;

/**
 * @ClassName: CollectionService
 * @Description:
 * @Author:zhimingw
 * @Version 1.0
 * @since 2022/3/16 19:56
 */
public interface CollectionService {
    
    /**
    * @Description: 添加一个课程收藏
    * @Param: [collection]
    * @return: boolean
    * @Author: zhimingw
    * @Date: 2022/3/16
    */
    boolean addCollection(Collection collection);

    /**
    * @Description: 查询用户的课程收藏
    * @Param: [collection]
    * @return: java.util.List<com.wuzhiming.istudy.pojo.Collection>
    * @Author: zhimingw
    * @Date: 2022/3/24
    */
    List<Collection> getCollection(Collection collection);

    /**
    * @Description: 取消收藏课程
    * @Param: [collection]
    * @return: boolean
    * @Author: zhimingw
    * @Date: 2022/3/24
    */
    boolean cancleCollection(Collection collection);
}
